package net.oschina.app.ui.activity;

import android.support.v4.app.FragmentTransaction;
import android.widget.FrameLayout;

import net.oschina.app.R;
import net.oschina.app.base.BaseActivity;
import net.oschina.app.fragment.explore.FriendsCirlceFragment;
import net.oschina.app.util.ToolBarUtil;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by 张运湘 on 2017/1/13.
 * 发现模块-盆友圈
 */
public class FriendsRircleActivity extends BaseActivity {

    @BindView(R.id.fl_friendsCircle)
    FrameLayout mFlFriendsCircle;
    private FriendsCirlceFragment mFriendsCirlceFragment = new FriendsCirlceFragment();

    @Override
    public int getLayoutRes() {
        return R.layout.activity_find_friendscircle;
    }

    @Override
    public void initView() {
        ButterKnife.bind(this);
        ToolBarUtil.setToolBar(this,"好友圈");
        FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
        fragmentTransaction.replace(R.id.fl_friendsCircle,mFriendsCirlceFragment).commit();
    }

    @Override
    public void initListener() {

    }

    @Override
    public void initData() {

    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        ButterKnife.bind(this).unbind();
    }
}
